package com.hzt.agprosaleplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_article")
public class Article {
    @TableId(type = IdType.AUTO)
    private Integer article_id;
    private String title;
    private String summary; //文章摘要
    private String content;   //mediumtext
    private String cover_image;
    private Integer author_id;
    private Integer category_id;
    private Integer view_count;
    private Integer like_count;
    private Integer status;  //状态码0 草稿，1已发布，2废弃
    private Timestamp created_date;
    private Timestamp updated_date;
}
